package com.simon.hse.activity.danger;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.simon.hse.MyApplication;
import com.simon.hse.R;
import com.simon.hse.activity.BaseActivity;
import com.simon.hse.interfaces.PopListener;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.Event;
import org.xutils.view.annotation.ViewInject;

import butterknife.ButterKnife;

/**
 * 隐患排查任务
 */
@SuppressWarnings("all")
@ContentView(R.layout.activity_add_task)
public class AddTaskActivity extends BaseActivity implements PopListener {
    @ViewInject(R.id.tv_common_title)
    TextView mTv_common_title;
    @ViewInject(R.id.tv_select_content)
    TextView tvSelectContent;
    @ViewInject(R.id.iv_common_left)
    ImageView ivCommonLeft;
    @ViewInject(R.id.tv_common_title)
    TextView tvCommonTitle;
    @ViewInject(R.id.iv_common_right)
    ImageView ivCommonRight;
    @ViewInject(R.id.iv_common_right2)
    ImageView ivCommonRight2;
    @ViewInject(R.id.tv_unit)
    TextView tvUnit;
    @ViewInject(R.id.tv_department)
    TextView tvDepartment;
    @ViewInject(R.id.ll_applicant_department)
    LinearLayout llApplicantDepartment;
    @ViewInject(R.id.tv_change_person)
    TextView tvChangePerson;
    @ViewInject(R.id.ll_applicant)
    LinearLayout llApplicant;
    @ViewInject(R.id.tv_active_person)
    TextView tvActivePerson;
    @ViewInject(R.id.tv_claim)
    TextView tvClaim;
    @ViewInject(R.id.tv_content)
    TextView tvContent;
    @ViewInject(R.id.tv_kind)
    TextView tvKind;
    @ViewInject(R.id.tv_article)
    TextView tvArticle;
    @ViewInject(R.id.tv_area)
    TextView tvArea;
    @ViewInject(R.id.tv_msg)
    TextView tvMsg;
    @ViewInject(R.id.tv_standard)
    TextView tvStandard;
    @ViewInject(R.id.tv_level)
    TextView tvLevel;
    @ViewInject(R.id.tv_unusual)
    TextView tvUnusual;
    @ViewInject(R.id.tv_normal)
    TextView tvNormal;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mTv_common_title.setText("添加排查任务");

    }

    @Event(value = {R.id.iv_common_left,R.id.tv_select_content, R.id.tv_unusual, R.id.tv_normal})
    private void clickButton(View view) {
        switch (view.getId()) {
                case R.id.iv_common_left:
                    finish();
                break;
            case R.id.tv_select_content:
                startActivityForResult(new Intent(this, DangerUnvestigationActivity.class), 1);
                break;
            case R.id.tv_unusual:
                startActivityForResult(new Intent(this, AddDangerReportActivity.class), 2);
                break;
            case R.id.tv_normal:

                break;
        }
    }
    @Override
    public void upData() {

    }
}
